package com.job.sun;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-14 22:05:33
 */
public class Item {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Item(String name) {
        this.name = name;
    }

    @Override
    protected void finalize() throws Throwable {
        System.out.println(this.name+"临终行为"+"我的遗产放在.....");
    }

}